<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" mode=""></image>
		<view class="info">
			<view class="contactPhone" @click="call">联系电话：18551901770( 点击拨打 )</view>
			<view>校区地址：福建省龙岩市新罗区龙岩学院4组2栋507</view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" scale="13" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 117.023087,
				latitude: 25.029551,
				markers:[
					{
						id:1,
						longitude: 117.023087,
						latitude: 25.029551,
						iconPath: '../../static/lyun.jpg',
						width: 30,
						height: 30
					}
				]
			}
		},
		methods: {
			call(){
				uni.makePhoneCall({
					phoneNumber: '12345678'
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		height: 100%;
		width: 100%;
		background:#e6e6e6;
		.contact{
			.img{
				width: 100%;
				height: 320rpx;
			}
			.info{
				margin:0 5rpx;
				padding: 0 20rpx;
				font-size: 33rpx;
				background-color: #fff;
				line-height: 80rpx;
				.contactPhone{
					border-bottom: 3rpx solid #eee;
				}
			}
			.map{
				margin: 8rpx;
				width: 100%;
				height: 750rpx;
			}
		}
	}
</style>
